﻿<div id="div-login">
    @if (Request.IsAuthenticated)
    {
        <text>
        Hello, @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: new { area = "member" }, htmlAttributes: new { @class = "username", title = "Manage" })!
        @using (Html.BeginForm("LogOff", "Account", new { area = "member" }, FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
<a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
        </text>
   
    }
    else
    {
        <ul>
            <li>@Html.ActionLink("Register", "Register", "Account", routeValues: new { area = "member" }, htmlAttributes: new { id = "registerLink" })</li>
            <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: new { area = "member" }, htmlAttributes: new { id = "loginLink" })</li>
        </ul>
    }
</div>
